package eu.vranckaert.workRegistrationWidget.service;

import android.content.Context;
import android.location.Location;
import com.google.inject.ImplementedBy;
import eu.vranckaert.workRegistrationWidget.domain.TimeRegistration;
import eu.vranckaert.workRegistrationWidget.service.impl.LocationServiceImpl;

/**
 * @author Dirk Vranckaert
 *         Date: 10-jun-2010
 *         Time: 16:20:45
 */
@ImplementedBy(LocationServiceImpl.class)
public interface LocationService {
    /**
     * Determine the last known location of the user.
     * @param context The context.
     * @param timeRegistration The registration to lookup the location for.
     * @return The found location.
     */
    @Deprecated
    boolean determineLastKnownLocation(Context context, TimeRegistration timeRegistration);

    /**
     * Determine the current location of the user.
     * @param context The context.
     * @param timeRegistration The registration to attach a location to
     * @return The found location.
     */
    void determineLocation(Context context, TimeRegistration timeRegistration);
}
